OpenMLBB SDK Docs

OpenMLBB Endpoint

SDK call mapping, request requirements, and Python example.

Every card documents the SDK call from OpenMLBB and mirrors API path/query/body requirements.

GET Hero Lane Time-based Win Rate

/openmlbb/academy/heroes/{hero_identifier}/win-rate/timeline

Open Only This

API Path: /api/academy/heroes/{hero_identifier}/win-rate/timeline

Retrieve time-based win rate statistics for a specific hero in a given lane. Supports query parameters for rank, pagination, and localization.

Path parameters:

  • hero_identifier: Hero identifier as numeric hero ID or hero name. Accepts values like 30, Yi Sun-shin, or yisunshin.

Query parameters:

  • lane: Lane. Allowed values: exp, mid, roam, jungle, gold. from /api/academy/heroes/{hero_identifier}/lane
  • rank: Rank filter. Allowed values: all, epic, legend, mythic, honor, glory.
  • size: Number of items per page (minimum: 1).
  • index: Page index (starting from 1).
  • lang: Language code for localized content (default: en).

The response includes hero lane time-based win rate data:

  • records: Array of hero entries, each containing:
      • _id: Unique record identifier.
      • _createdAt: Creation timestamp.
      • _updatedAt: Last update timestamp.
      • data:
          • heroid: Hero ID.
          • hero_name: Hero name.
          • real_road: Lane ID (e.g., 4 for Jungle).
          • total_win_rate: Overall win rate for the hero in this lane.
          • time_win_rate: Array of segmented win rates by match duration:
              • time_min: Minimum time interval (minutes).
              • time_max: Maximum time interval (minutes).
              • win_rate: Win rate within that time range.

This endpoint is useful for:

  • Analyzing hero performance progression over match duration.
  • Understanding lane-specific strengths.
  • Guiding players in timing strategies for optimal hero usage.

Python Example

from OpenMLBB import OpenMLBB

client = OpenMLBB()
response = client.academy.hero_win_rate_timeline("miya", lane="exp", rank="all", size=20, index=1, lang="en")
print(response)

Path and Query Parameters

Name In Type Required Default
hero_identifier path string yes -
lane query string yes -
rank query string no all
size query integer no 20
index query integer no 1
lang query string no en